import redis


def conn():
    r = redis.StrictRedis(host='localhost', port=6379, db=0)
    return r

if __name__ == "__main__":
    r = redis.StrictRedis(host='localhost', port=6379, db=0)
    r.set('1','1')